/*
 * @Author: 李家磊
 * @Date: 2022-03-15 15:42:24
 * @LastEditTime: 2022-03-15 15:42:24
 * @LastEditors: 李家磊
 * @Description:
 * @FilePath: /template/src/services/user.ts
 */
import { request } from 'umi';

export async function query() {
  return request<API.CurrentUser[]>('/api/users');
}

export async function queryCurrent() {
  return request<API.CurrentUser>('/api/currentUser');
}

export async function queryNotices(): Promise<any> {
  return request<{ data: API.NoticeIconData[] }>('/api/notices');
}
